cmake_minimum_required(VERSION 3.5)

project(test LANGUAGES CXX C)

set(CMAKE_CXX_STANDARD 17)

#include_directories(${PROJECT_SOURCE_DIR}/../include)
#message(${JSON_INCLUDE_DIRS})
#message(${PROJECT_SOURCE_DIR}/../src)

find_package(GTest)

add_executable(test-conf conf/main.cpp)
target_link_libraries(test-conf PUBLIC kyai-business-framework)

add_executable(test-log log/main.cpp)
target_link_libraries(test-log PUBLIC kyai-business-framework)

add_executable(test-sqlite sqlitecpp/Database_test.cpp)
target_link_libraries(test-sqlite PUBLIC kyai-business-framework GTest::GTest GTest::Main)

add_executable(test-utils utils/main.cpp)
target_link_libraries(test-utils PUBLIC kyai-business-framework GTest::GTest GTest::Main)

add_executable(test-embedding embedding/main.cpp)
target_link_libraries(test-embedding PUBLIC kyai-business-framework)
target_include_directories(test-embedding
    PUBLIC ${PROJECT_SOURCE_DIR}/../src/rpc/embedding
)

add_executable(test-vector-db vectorDB/main.cpp)
target_link_libraries(test-vector-db PUBLIC kyai-business-framework GTest::GTest GTest::Main)
